using UwinEducation.Application.Dtos;
using UwinEducation.Shared.Models;

namespace UwinEducation.Application.Common.Interfaces
{
    /// <summary>
    /// 教师档期服务接口
    /// </summary>
    public interface ITeacherAvailabilityService
    {
        /// <summary>
        /// 获取教师档期分页列表
        /// </summary>
        Task<PagedResult<TeacherAvailabilityDto>> GetPagedListAsync(TeacherAvailabilityPageRequest pageRequest);

        /// <summary>
        /// 获取教师档期分页列表（按是否有排课排序）
        /// </summary>
        /// <param name="pageRequest">分页请求</param>
        /// <returns>排序后的教师档期分页结果</returns>
        Task<PagedResult<TeacherAvailabilityDto>> GetPagedListWithScheduleStatusAsync(TeacherAvailabilityPageRequest pageRequest);

        /// <summary>
        /// 获取教师档期详情
        /// </summary>
        Task<TeacherAvailabilityDto> GetByIdAsync(Guid id);

        /// <summary>
        /// 创建教师档期
        /// </summary>
        Task<TeacherAvailabilityDto> CreateAsync(CreateTeacherAvailabilityDto input);

        /// <summary>
        /// 更新教师档期
        /// </summary>
        Task<TeacherAvailabilityDto> UpdateAsync(UpdateTeacherAvailabilityDto input);

        /// <summary>
        /// 删除教师档期
        /// </summary>
        Task DeleteAsync(Guid id);

        /// <summary>
        /// 获取教师的档期列表
        /// </summary>
        Task<BatchCreateTeacherAvailabilityDto> GetByTeacherIdAsync(Guid teacherId);

        /// <summary>
        /// 获取指定日期范围内的教师档期
        /// </summary>
        Task<List<TeacherAvailabilityDto>> GetByDateRangeAsync(Guid teacherId, DateTime startDate, DateTime endDate);

        Task<List<TeacherAvailabilityDto>> BatchCreateAsync(BatchCreateTeacherAvailabilityDto inputs);
    }
} 